package com.nanjia.boot.myflow.order.item.converter;

import com.nanjia.boot.myflow.order.item.model.vo.OrderItemVO;
import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nanjia.boot.myflow.order.item.model.entity.OrderItem;
import com.nanjia.boot.myflow.order.item.model.form.OrderItemForm;

/**
 * 订单商品明细对象转换器
 *
 * @author 周洋
 * @since 2025-07-18 14:59
 */
@Mapper(componentModel = "spring")
public interface OrderItemConverter{

    OrderItemForm toForm(OrderItem entity);

    OrderItem toEntity(OrderItemForm formData);

    OrderItemVO toVo(OrderItem entity);
}